# ！/usr/bin/env python
# -*- coding = utf-8 -*-
# ================================================
# @Time  :2021/8/5 17:31
# @Author:tyh
# @File  :testcase.py
# @Phone :13926528314
# ================================================
from server import db


class TestCase(db.Model):

    __tablename__ = "testcase"
    id = db.Column(db.Integer, primary_key=True)
    nodeid = db.Column(db.String(80), nullable=False)
    remark = db.Column(db.String(120))

    def __init__(self, id, nodeid, remark):
        self.id = id
        self.nodeid = nodeid
        self.remark = remark

    def __repr__(self):
        return '<User %r>' % self.username

    def as_dict(self):
        return {"id":self.id, "nodeid":self.nodeid, "remark":self.remark}
